﻿using ManageSystem.Model;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace ManageSystem.IService
{
    public interface IOutlayStreamService: IBaseService<OutlayStream>
    {
        public Task<List<OutlayStream>> QueryOutlayStreamByProjectGuid(string projectGuid);

        // 添加或者更新、删除支出流水时，对项目的已到账、未到账金额和支出合计
        public Task<Project> DealWithOutlayStreamsOfProject(OutlayStream outlayStream, Project projectToBeUpdated, string mode);

        // 删除项目时删除与其相关的支出流水
        public Task<int> DeleteOutlayStreamByProjectGuid(string projectGuid);
    }
}
